<!--
 * @Author: C.
 * @Date: 2021-12-23 09:42:48
 * @LastEditTime: 2021-12-27 15:57:16
 * @Description: file content
-->
<template>
  <view>
    <u-navbar title="formDemo"> </u-navbar>
    <j-form :register="formObj" ref="jform"></j-form>
    <u-button @click="log">checxk</u-button>
  </view>
</template>

<script>
import { JForm } from "./config";
import BasicCard from "@/components/BasicCard";
export default {
  components: {
    BasicCard
  },
  data() {
    return {
      formObj: {}
    };
  },
  created() {
    this.formObj = new JForm();
    console.log(this.formObj);
  },
  methods: {
    // 搜索页的页面回调 返回一个keyword
    searchCallBack(keyword) {
      console.log(keyword, 7777);
    },
    log() {
      // console.log();
      this.$refs.jform.validate((valid) => {
        console.log(this.$refs.jform.getForm(), 66556);
      });
    }
  }
};
</script>

<style></style>
